#pragma once

class CMyQueue
{
	int *m_iQueue;
	int front;
	int tail;
	int max;
	int size;
public:
	CMyQueue(int m = 100) : front(0), tail(0), size(0), max(m){ m_iQueue = new int[m]; }
	~CMyQueue(void) {}
	void enqueue(int item);
	int dequeue();
	bool isEmpty() { return (front == tail && size == 0); }
	bool isFull() { return size == max; }
	int getFront() { return m_iQueue[front+1]; }
	int getSize() { return size; }
};
